﻿CREATE TRIGGER LoanExecutionInstallments_Tracking_Delete
ON [dbo].[LoanExecutionInstallments] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.LoanExecutionInstallments_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.LoanExecutionInstallments_Tracking s JOIN DELETED i
    ON s.LoanExecutionInstallmentID = i.LoanExecutionInstallmentID
END











